{% ifnotequal username None %}
<html>
<head>
<title>主机全部信息</title>
{% include "systy.html" %}
</head>
<body>

{% include "head2.html" %}
<div class="container mytable">
<div class="location_div">位置：信息中心 </div>
<table>
    <thead>
        <tr>
            <td>IP</td>
            <td>端口</td>
            <td>用户</td>
            <td>协议</td>
            <td>主机名</td>
            <td>系统</td>
            <td>CPU型号</td>
            <td>核数</td>
            <td>物理(M)</td>
            <td>虚拟(M)</td>
            <td>硬盘(G)</td>
            <td>分组</td>
            <td>别名</td>
            <td>操作</td>     
        </tr>
    </thead>
    {% for ipinfo in iplist %}
    <tr>
        <td>{{ ipinfo.ip }}</td>
        <td>{{ ipinfo.port }}</td>
        <td>{{ ipinfo.user }}</td>
        <td>{{ ipinfo.protocol_type }}</td>
        <td>{{ ipinfo.hostname }}</td>
        <td>{{ ipinfo.system }}</td>
        <td>{{ ipinfo.cpu }}</td>
        <td>{{ ipinfo.cpumun }}</td>
        <td>{{ ipinfo.hmem }}</td>
        <td>{{ ipinfo.vmem }}</td>
        <td>{{ ipinfo.disk }}</td>
        <td>{{ ipinfo.group }}</td>
        <td>{{ ipinfo.alias }}</td>  
        <td class="host_buttom">
            <a onclick="javascript:Popbox('更新主机',350,550,'hostupdate/{{ ipinfo.id }}.html');" class="btn btn-info btn-xs ">更改</a> 
            <a class="btn btn-warning btn-xs white"  href="infoupdate/{{ ipinfo.id }}.html">更新</a> 
            <a class="btn btn-danger btn-xs" href="hostdel/{{ ipinfo.id }}.html" onClick="delcfm()" {% ifnotequal userpermissions "运维经理" %} disabled="disabled" {% endifnotequal %}>删除</a>
            
        </td>
    </tr>
    {% endfor %}
</table>


</div>
</body>
</html>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
